import static org.junit.Assert.*;

import java.io.IOException;

import org.junit.Test;


public class PlayerTest {

	@Test
	public void testPlayer() {
		Player player = new Player("127.0.0.1", 4444);
		assertNotNull(player);
	}

	@Test
	public void testRun() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public void testHandle() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public void testStart() {
		Player player = new Player("127.0.0.1", 4444);
		try {
			player.start();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		assertNotNull(player.client);
		assertNotNull(player.thread);
		
	}

	@Test
	public void testStop() {
		Player player = new Player("127.0.0.1", 4444);
		player.stop();
		assertNull(player.thread);
	}

	@Test
	public void testMain() {
		fail("Not yet implemented"); // TODO
	}

}
